<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!-- 错误的做法:这里不可以使用mustache语法 -->
    <!-- 正确的做法:使用v-bind指令 -->
    <img v-bind:src="imgurl" alt="">
    <a v-bind:href="ahref">百度一下</a>
    <!-- 语法糖的写法 -->
    <a :href="ahref">百度一下</a>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: '你好啊',
        imgurl: 'https://static.hdslb.com/images/akari.jpg',//动态绑定
        ahref: 'http://www.baidu.com'

      },
      methods: {},
    })
  </script>
</body>

</html>